﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Blend_Custom</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
html,body { 
	/* Default Font */
	font-family: 宋体, Arial, Helvetica, sans-serif;
	font-size: 10pt;
}
</style>

</head>

<body>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" border=1 cellSpacing=0 
borderColor=#000000 cellPadding=1 width=800>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>定义</FONT></P></TD>
    <TD width=680><FONT size=2><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>int Blend_Custom(xge::Surface* src, int px, int py, int cx, int cy, int cw, int ch, xge::Surface* dst, xge_blend_func bk, int param);<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>Function Blend_Custom(src As xge.Surface Ptr, px As Integer, py As Integer, cx As Integer, cy As Integer, cw As Integer, ch As Integer,dst As xge.Surface Ptr, bk As xge_blend_func, param As Integer) As Integer<br><br><STRONG><FONT color=#0000ff>SDK_C：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_BASIC：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_Pascal：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_易语言：</FONT></STRONG><br>暂未公布<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>功能</FONT></P></TD>
    <TD width=680><FONT size=2><br>Blend渲染器核心函数。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>参数</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>src：</FONT></STRONG><br>源图像指针。<br><br><STRONG><FONT color=#0000ff>px：</FONT></STRONG><br>绘制到目标的横坐标。<br><br><STRONG><FONT color=#0000ff>py：</FONT></STRONG><br>绘制到目标的纵坐标。<br><br><STRONG><FONT color=#0000ff>cx：</FONT></STRONG><br>源图像裁剪起点横坐标。<br><br><STRONG><FONT color=#0000ff>cy：</FONT></STRONG><br>源图像裁剪起点纵坐标。<br><br><STRONG><FONT color=#0000ff>cw：</FONT></STRONG><br>源图像裁剪宽度。<br><br><STRONG><FONT color=#0000ff>ch：</FONT></STRONG><br>源图像裁剪高度。<br><br><STRONG><FONT color=#0000ff>dst：</FONT></STRONG><br>目标图像指针。<br><br><STRONG><FONT color=#0000ff>bk：</FONT></STRONG><br>混合处理函数回调。<br><br><STRONG><FONT color=#0000ff>param：</FONT></STRONG><br>传递给混合处理函数的额外参数。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>返回值</FONT></P></TD>
    <TD width=680><FONT size=2><br>成功返回 -1[True] 失败返回 0[False]。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>补充说明</FONT></P></TD>
    <TD width=680><FONT size=2><br>本函数负责将两个图像表面进行自定义算法混合。<br>函数具备完善的边界检查功能，会自动对越界的部分进行裁剪和跳出。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>使用范例</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>无范例。<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>无范例。</FONT></TD></TR></TABLE></P>
</body>